﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Xml.Serialization;

namespace Twitter
{
    [Serializable]
    [XmlRoot("status")]
    public class Tweet
    {
        [XmlElement("created_at")]
        public string DateCreated { get; set; }
        [XmlElement("id")]
        public int ID { get; set; }
        [XmlElement("text")]
        public string Text { get; set; }
        [XmlElement("source")]
        public string Source { get; set; }
        [XmlElement("truncated")]
        public string TextTruncated { get; set; }
        [XmlElement("in_reply_to_status_id")]
        public string InReplyOfStatusID { get; set; }
        [XmlElement("in_reply_to_user_id")]
        public string InReplyOfUserID { get; set; }
        [XmlElement("favorited")]
        public string Favorited { get; set; }
        [XmlElement("user")]
        public TwitterUser User { get; set; }

        public override string ToString()
        {
            return Text;
        }
    }
}
